package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对象存储对象 sys_storage
 * 
 * @author ruoyi
 * @date 2022-11-07
 */
public class SysStorage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 文件名 */
    @Excel(name = "文件名")
    private String filename;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String type;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String url;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private String size;

    /** 文件渠道 */
    @Excel(name = "文件渠道")
    private String channel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setChannel(String channel) 
    {
        this.channel = channel;
    }

    public String getChannel() 
    {
        return channel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("filename", getFilename())
            .append("type", getType())
            .append("url", getUrl())
            .append("size", getSize())
            .append("channel", getChannel())
            .append("createTime", getCreateTime())
            .toString();
    }
}
